<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>首页</title>
    <include file="Public:headhtml"/>
</head>

<body>
<include file="Public:head"/>
<!--头图开始-->
<div class="top_pic middle" id="top_gray">
    <div class="signin_top middle">
        <!--左侧开始-->
        <div class="signinup_left left">
            <ul class="signinup_lul">
                <li class="signinup_lpic position_r middle"><img src="<{$userMessage['picture']}>" class="signinpic position_r"/>

                    <!--<div class="position_a">编辑</div>-->
                </li>
                <li class="signinup_lpt1"><{$userMessage['nickname']}> <img src="/Static/images/hua_32.png"/></li>
                <li class="signinup_lpt2"><{$userMessage['classes']}> <{$userMessage['school']}></li>
                <li class="signinup_lpt2">等级：xxxx 积分：xxxx</li>
                <li class="signinup_lpt3"><a href="#" class="signinup_lbut">查看特权,购买vip</a></li>
            </ul>
        </div>
        <!--左侧结束-->
        <!--右侧开始-->
        <div class="signinup_right left">


            <div class="shortages_loop" id="short">
                <div>
                    <a href="#"><img src="<{$roomList[0]['teacher']['pic']}>" class="shortages_pic left"/></a>
                    <ul class="left shortages_pul">
                        <li class="shortages_t1"><{$roomList[0]['teacher']['name']}></li>
                        <li class="shortages_t2">
                            <{$roomList[0]['teacher']['school']}>
                        </li>
                    </ul>
                    <div class="clean_game"></div>
                </div>
                <ul class="shortages_t2">
                    <li id="short_t1">
                        <if condition="$roomList[0]['status'] eq 0">
                            即将直播的视频：
                            <else />
                            正在直播的视频：
                        </if>
                        <{$roomList[0]['name']}>
                    </li>
                    <li><{$roomList[0]['description']}></li>
                    <li class="short_t2">
                        <if condition="$roomList[0]['status'] neq 0">
                            <a href="/Online/play/id/<{$roomList[0]['id']}>" class="short_t3">听课</a>
                        </if>

                        <!--<a href="#" class="short_t4">预习</a>-->
                        <!--<a href="#" class="short_t4">作业</a></li>-->
                </ul>
            </div>

        </div>
        <!--右侧结束-->


        <div class="clean_game"></div>
    </div>
</div>
<!--头图结束-->
<!--中间开始-->
<div class="center middle">
    <div class="shortages middle">
        <!--内容开始-->
        <!--图文开始-->
        <div class="recently">
            <!--标题开始-->
            <ul class="recently_ul">
                <li class="recently_ut1 left">近期课程</li>
                <li class="recently_ut2 right position_r">
                    <a href="/" id="tid0">全部</a>
                    <foreach name="subjectsList" item="vo">
                        <a href="/Index/index/tid/<{$vo.id}>" id="tid<{$vo.id}>" style="margin: 0 5px"><{$vo.name}></a>
                    </foreach>
                </li>
                <div class="clean_game"></div>
            </ul>
            <!--标题结束-->
            <!--内容开始-->
            <div class="recently_nr">
                <!--循环开始-->
                <foreach name="roomList" item="vo">
                    <ul class="recently_loop left">
                        <li class="position_r recently_lt1"><a href="/Online/play/id/<{$vo.id}>"><img
                                src="<{$vo.image}>" width="270" height="160"/></a>
                            <if condition="$vo['status'] eq 0">
                                <span class="recently_t1 position_a"><{$vo.beginTime|date='Y-m-d h:I:s',###}> 开播</span>
                                <else/>
                                <span class="recently_t2 position_a">正在直播</span>
                            </if>
                            <a href="/Online/play/id/<{$vo.id}>"><img src="/Static/images/hua_37.png"
                                                                      class="recently_t6 position_a"/></a></li>
                        <li class="recently_t3"><a href="/Online/play/id/<{$vo.id}>"><{$vo.name}></a></li>
                        <li class="recently_t4"><a href="/Online/play/id/<{$vo.id}>"><{$vo.teacher.name}>
                            <{$vo.teacher.levelTitle}> <{$vo.teacher.school}></a></li>
                    </ul>
                </foreach>
                <!--循环结束-->


                <div class="clean_game"></div>
            </div>
            <!--内容结束-->


        </div>
        <!--图文结束-->

        <!--图文3开始-->
        <div class="recently">
            <!--标题开始-->
            <ul class="recently_ul">
                <li class="recently_ut1 left">近期课程</li>

                <div class="clean_game"></div>
            </ul>
            <!--标题结束-->
            <!--内容开始-->
            <div class="recently_nr">
                <!--循环开始-->
                <ul class="recently_loop2 left">
                    <li><a href="#"><img src="/Static/images/index_10.jpg" class="shortages_pic"/></a></li>
                    <li class="recently_t3">近期课</li>
                    <li class="recently_t7">近期课</li>
                    <li class="recently_t8"><a href="#">向我提问</a></li>
                </ul>
                <!--循环结束-->


                <div class="clean_game"></div>
            </div>
            <!--内容结束-->


        </div>
        <!--图文3结束-->


        <!--内容结束-->
    </div>
</div>

<script type="text/javascript">
    var tid = "<{$tid}>";
    $("#tid" + tid + "").addClass("recently_ut3");

</script>
<!--中间结束-->
<include file="Public:footer"/>
</body>
</html>
